package com.hoyo.domain;

import java.sql.Timestamp;
import java.util.List;

import com.hoyo.common.PageInfo;

public class Movie {
	
	private int id;
	
	private int catalogId;
	
	private String movieName;
	
	private String realPath;
	
	private int sortNumber;
	
	private Timestamp createTime;
	
	private boolean isChecked;
	
	private int commentAmount;
	
	private List<Comment> topicComments;
	
	private PageInfo<Comment> comments;
	
	public Movie() {
		this.createTime = new Timestamp(System.currentTimeMillis());
	}
	
	public Movie(int catalogId, String realPath, String movieName, int sortNumber){
		this();
		this.catalogId = catalogId;
		this.realPath = realPath;
		this.movieName = movieName;
		this.sortNumber = sortNumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	public String getRealPath() {
		return realPath;
	}

	public void setRealPath(String realPath) {
		this.realPath = realPath;
	}

	public int getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(int catalogId) {
		this.catalogId = catalogId;
	}

	public int getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(int sortNumber) {
		this.sortNumber = sortNumber;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public boolean getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}
	
	public int getCommentAmount() {
		return commentAmount;
	}

	public void setCommentAmount(int commentsCount) {
		this.commentAmount = commentsCount;
	}

	public PageInfo<Comment> getComments() {
		return comments;
	}

	public void setComments(PageInfo<Comment> comments) {
		this.comments = comments;
	}

	public List<Comment> getTopicComments() {
		return topicComments;
	}

	public void setTopicComments(List<Comment> topicComments) {
		this.topicComments = topicComments;
	}
}
